package br.com.android;

import br.com.android.R.locais;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;



public class Principal extends Activity{
	

	private Button btChat, btLocais;
	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.principal);
        
        btChat = (Button) findViewById(R.principal.btChat);
        btLocais = (Button) findViewById(R.principal.btLocais);
        
        
        btChat.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(Principal.this, Chat.class);
				startActivity(i);
				
			}
		});
        
        btLocais.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent ii = new Intent(Principal.this, Local.class);
				startActivity(ii);
				
			}
		});
        
	}

}
